//
//  infosModel.m
//  ILiangCang
//
//  Created by ZX on 16-4-18.
//  Copyright (c) 2016年 CRQ. All rights reserved.
//

#import "infosModel.h"

@implementation infosModel

-(id)initWithDictionary:(NSDictionary *)dic
{
    self = [super init];
    if (self)
    {
        _topicName = dic[@"topic_name"];
        _navTitle = dic[@"nav_title"];
        _authorName = dic[@"author_name"];
        _catName = dic[@"cat_name"];
        _topicURL = [NSURL URLWithString:dic[@"topic_url"]];
        _coverImage = [NSURL URLWithString:dic[@"cover_img"]];
        _thumb = [NSURL URLWithString:dic[@"thumb"]];
        _note = dic[@"note"];
        
    }
    return self;
    
}
+(id)infosModelWithDictionary:(NSDictionary *)infosDictionary
{
    return [[self alloc]initWithDictionary:infosDictionary];
}

@end
